package bookticket.crm.user.entity;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.springframework.context.annotation.Scope;

@Scope("prototype")
@Table(name="wxq_user_t")
public class UserEntity {

	@Id
	private Integer id;
	
	private String phone;
	
	private String password;
	
	private Integer vipId=4;
	
	/**
	 * 剩余总金额
	 */
	private Integer residualAmount=0;
	
	/**
	 * 会员名
	 * @Transient表示非该表内的的字段
	 */
	@Transient
	private String vipName;
	
	@Transient
	private String vipPhone;
	
	public String getVipName() {
		return vipName;
	}
	public void setVipName(String vipName) {
		this.vipName = vipName;
	}
	public String getVipPhone() {
		return vipPhone;
	}
	public void setVipPhone(String vipPhone) {
		this.vipPhone = vipPhone;
	}
	public Integer getVipId() {
		return vipId;
	}
	public void setVipId(Integer vipId) {
		this.vipId = vipId;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Integer getResidualAmount() {
		return residualAmount;
	}
	public void setResidualAmount(Integer residualAmount) {
		this.residualAmount = residualAmount;
	}
	
	
}
